//
//  JRMFError.m
//  JRMFMobileVerify
//
//  Created by Criss on 2017/12/28.
//  Copyright © 2017年 SONG. All rights reserved.
//

#import "JRMFError.h"

@implementation JRMFError
+(instancetype)defaultError
{
    JRMFError * error = [JRMFError errorWithDomain:@"com.JRMF.MobileVerify"
                                          code:999
                                      userInfo:@{NSLocalizedDescriptionKey:@"获取token失败"}];
    return error;
}
+(instancetype)jrmfErrorWithDes:(NSString *)des code:(NSInteger)code
{
    if (des.length == 0 || !des) {
        des = @"";
    }
    JRMFError * error = [JRMFError errorWithDomain:@"com.JRMF.MobileVerify"
                                              code:code
                                          userInfo:@{NSLocalizedDescriptionKey:des}];
    return error;
}
@end
